<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_BOM操作</title>
</head>
<body>
<button onclick="alert('警告框')">警告框</button>
<button onclick="confirm('确定要操作?')">确认框</button>
    <button onclick="prompt('请输入你的会员卡:')">输入框</button>
<script>
    console.log(parseInt(6.6));
    console.log(parseInt(6));
    console.log(parseInt(6.1));
    console.log(parseInt('hhh'));
    console.log(parseInt('6.6'));
    console.log(parseInt('12hh33hh'));

    console.log(parseFloat('6.6'));
    console.log(parseFloat('6'));
    console.log(parseFloat('hhh'));
    console.log(parseFloat('11hh44'));
    // console.log(parseFloat('6.6'));
    console.log(isNaN('hh'));
    console.log(isNaN(6));
    console.log(isNaN(2.2));

</script>
</button>
</body>
</html>